package com.jic.order.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.jic.order.entity.OrderAfterSaleFlowRecordModel;
import java.util.List;
import java.util.Map;

/**
 * 订单售后流水表 Mapper 接口
 *
 * @author xuyongliang
 * @since 2020-02-01
 */
@Mapper
public interface OrderAfterSaleFlowRecordMapper {

    /**
     * 订单售后流水表 新增
     *
     * @param
     */
    Integer orderAfterSaleFlowRecordAdd(OrderAfterSaleFlowRecordModel skuModel);


    /**
     * 订单售后流水表 编辑
     *
     * @param
     */
    Integer orderAfterSaleFlowRecordEdit(@Param("record") OrderAfterSaleFlowRecordModel record, @Param("example") OrderAfterSaleFlowRecordModel example);

    /**
     * 订单售后流水表 删除
     *
     * @param \
     */
    Integer orderAfterSaleFlowRecordDelete(Map map);

    /**
     * 订单售后流水表 查询详情
     *
     * @param
     */
    OrderAfterSaleFlowRecordModel orderAfterSaleFlowRecordQuery(Map map);

    /**
     * 订单售后流水表 分页查询
     *
     * @param
     */
    List<OrderAfterSaleFlowRecordModel> orderAfterSaleFlowRecordQueryPageList(
            @Param("startIndex") int startIndex,
            @Param("limit") int limit,
            @Param("example") OrderAfterSaleFlowRecordModel example);

    /**
     * 订单售后流水表 分页查询数量
     *
     * @param example 查询条件
     */
    Integer orderAfterSaleFlowRecordQueryPageCount(
            @Param("example") OrderAfterSaleFlowRecordModel example);

    /**
     * 订单售后流水表 修改单据状态
     *
     * @param \
     */
    Integer orderAfterSaleFlowRecordChangeStatus(Map map);

    /**
     * 订单售后流水表 修改审批状态
     *
     * @param \
     */
    Integer orderAfterSaleFlowRecordChangeApproveStatus(Map map);

}